<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图片</title>
    <style>
        .div1 {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            background-color: slategray;
            background-repeat: no-repeat;
            /* 第一个值为x，第二个值为y */
            background-position: 50px 19px;
        }

        .div2 {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            background-color: rgb(12, 12, 12);
            background-repeat: no-repeat;
            /* 值为x，y轴默认为center */
            background-position: 50px;
        }
    </style>
</head>

<body>
    <div class="div1">
    </div>
    <div class="div2">
    </div>
</body>

</html>